﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cooking
{
    /// <summary>
    /// Represents From-To range of values for
    /// time, temperature and other measurable values
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public struct FromToRange<T>
    {
        #region properties backing fields
        private T _From;
        private T _To;
        #endregion

        /// <summary>
        /// "From" value
        /// </summary>
        public T From
        {
            get { return _From; }
            set { _From = value; }
        }

        /// <summary>
        /// "To" value
        /// </summary>
        public T To
        {
            get { return _To; }
            set { _To = value; }
        }

        /// <summary>
        /// Returns in the form of 
        /// From ÷ To
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return From.ToString() + " ÷ " + To.ToString();
        }
    }
}
